package com.nageoffer.onecoupon.framework.config;

import com.nageoffer.onecoupon.framework.idempotent.NoDuplicateSubmitAspect;
import org.redisson.api.RedissonClient;
import org.springframework.context.annotation.Bean;
import org.redisson.api.RedissonClient;
import org.springframework.context.annotation.Bean;
/**
 * 幂等组件相关配置类
 * 作者 伟大哥
 * 日期 2025/3/29,16:45
 **/

public class IdempotentConfiguration {
    /**
     * 防止用户重复提交表单信息切面控制器
     */
    @Bean
    public NoDuplicateSubmitAspect noDuplicateSubmitAspect(RedissonClient redissonClient) {
        return new NoDuplicateSubmitAspect(redissonClient);
    }

}
